package my.test;

import java.io.IOException;
import java.util.Arrays;
import java.util.stream.IntStream;

public class Stack {
    public static void main(String[] args) throws IOException {
        IntStream.range(1, 4)
                .forEach(System.out::println);
    }

    private static void gcTest() throws IOException {
        System.in.read();
        System.in.read();
        Person p1 = new Person();
        System.in.read();
        System.in.read();
        Person p2 = new Person();
        p1.setMate(p2);
        p2.setMate(p1);
        System.out.println("before exit gctest!");
        System.in.read();
        System.in.read();
        System.gc();
        System.out.println("exit gctest!");
    }

    private static class Person {
        byte[] data = new byte[20000000];
        Person mate = null;

        public void setMate(Person other) {
            mate = other;
        }
    }
}